package com.demo5;

import com.demo5.component.StudentComponent;
import com.demo5.model.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App5 {
    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("spring-config.xml");
        Student sc = context.getBean("student1", Student.class);
        System.out.println(sc);
    }
}
